from flask_restful import Api

from apps.settingApi.api.printCode.views import printOrderListView,printTemplateListView,printTemplatePkView

printcode_api = Api(prefix='/setting/printcode/')

# 打印模板列表操作
printcode_api.add_resource(printOrderListView,'/printorderlist/',endpoint="printorderlist")

# 打印模板列表操作
printcode_api.add_resource(printTemplateListView,'/printtemplatelist/',endpoint="printtemplatelist")
# 打印模板pk单做
printcode_api.add_resource(printTemplatePkView,'/printtemplatepk/<pk>/',endpoint="printtemplatepk")
